package com.fs.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "添加商品时传递的数据模型")
public class ProductAddDTO {

    @ApiModelProperty("花名")
    private String name;

    @ApiModelProperty("种类")
    private String type;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("花语")
    private String language;

    @ApiModelProperty("主图URL")
    private String image;

    @ApiModelProperty("商品介绍")
    private String intro;

    @ApiModelProperty("库存数量")
    private Integer stock;
}
